package examples.stateless;

import java.util.Collection;
import java.util.Date;

import examples.model.Customer;
import examples.model.Performance;
import examples.model.Seat;
import examples.model.Ticket;

public interface TicketService {
    public Collection<Performance> findPerformanceByShowName(String showName);
//    public Collection<Performance> findPerformance(Show show);
    public Collection<Performance> findPerformanceByShowNameAndDate(String showName, Date date);
//    public Collection<Performance> findPerformance(Show show, Date date);
    public Ticket reserveTicket(String customerName, int performanceId);

    public void releaseTicket(int ticketId);

    public Ticket buyTicket(int ticketId);
 }
